<!--
 * @Author: ChunLai
 * @Date: 2023-08-24 14:51:03
 * @LastEditTime: 2023-08-28 16:07:56
 * @Description: 抄录操作组件
 * @FilePath: \0.newInsure\src\views\multipages\components\TranscribeText.vue
-->
<template>
  <div>
    <div class="copy_text_show">{{ transcribeText }}</div>
    <TranscribeBoard
      ref="mysign"
      :validTxt="false"
      @uploadSing="signDoneNext"
      @cancelDraw="openCopy = false"
      v-if="openCopy"
    />
  </div>
</template>

<script>
import { mapGetters } from 'vuex';
import TranscribeBoard from './TranscribeBoard';
export default {
  name: 'TranscribeText',
  data() {
    return {
      openCopy: false,
    };
  },
  components: { TranscribeBoard },
  computed: {
    ...mapGetters({
      transcribeText: 'page/transcribeText',
      transcribeProducts: 'page/transcribeProducts',
    }),
  },
  watch: {},
  created() {},
  mounted() {},
  methods: {
    initModule() {
      this.openCopy = true;
    },
    signDoneNext() {
      this.openCopy = false;
      this.$router.go(-1);
    },
    cancelDraw() {
      this.openCopy = false;
    },
  },
};
</script>

<style lang="less" scoped>
.copy_text_show {
  font-weight: 600;
  letter-spacing: 4px;
  margin-top: 10px;
}
</style>
